package com.haiwen.controller;

import com.haiwen.mapper.CourseMapper;
import com.haiwen.pojo.course;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {
    @Autowired
    CourseMapper courseMapper;
    @GetMapping(value = "/test.do")
    public List<course> selsec(){
        return  courseMapper.selectAll();
    }
}
